﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	沉降模型
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div id="dolphincontainer">
	    <div id="dolphinnav">
	        <ul class="top_tab">
	            <li><a href="/Stack/Index"><span>堆场管理</span></a></li>
                <li><a href="/Stack/Edit/<%=ViewData["id"] %>"><span>基本信息</span></a></li>
                <li><a href="/Stack/Weather/<%=ViewData["id"] %>"><span>气象信息</span></a></li>
                <li><a href="/Stack/Stack/<%=ViewData["id"] %>"><span>堆场信息</span></a></li>
                <li><a href="/Stack/Pool/<%=ViewData["id"] %>"><span>调节水池</span></a></li>
                <li><a href="/Stack/Material/<%=ViewData["id"] %>"><span>材料信息</span></a></li>
                <li><a href="javascript:return(false);" class="current"><span>沉降模型</span></a></li>
                <li><a href="/Stack/Piezometer/<%=ViewData["id"] %>"><span>测压井测压仪</span></a></li>
                <li><a href="/Stack/Drain/<%=ViewData["id"] %>"><span>导渗系统</span></a></li>
                <li><a href="/Position/List?type=1&stackId=<%=ViewData["id"] %>"><span>上传图片</span></a></li>
	        </ul>
	    </div>
	</div>

    
    <% 
    using (Html.BeginForm())
    {
    %>
    <%= Html.ValidationSummary(true) %>
    <%= Html.Hidden("id", (int)ViewData["id"])%>
    
    
    <fieldset class="tf_style">
        <legend>拟合曲线方程：(格式为：100-150:1,2,3,4,5,6)</legend>
        <p>
            <%= Html.TextArea("equation", (string)ViewData["equation"], new { cols="80", rows="15"})%>
        </p>
    </fieldset>

    
    <div class="submit_btn_area" style="margin-left:92px;">
        <input type="submit" value="提 交" />
    </div>
    
    
    <% } %>
<!--
    <div style="clear:both;margin-left:10px;margin-top:20px">
        <table class="tableCss" cellspacing="0" cellpadding="0" align="center" border="1" style="float:left;width:400px">
            <tr class="row1">
                <th class="highlight">高程</th>
                <th class="highlight">容积（测量）</th>
                <th class="highlight">容积（拟合）</th>
            </tr>
            <tr>
                <td class="row1">1234</td>
                <td class="row1">1234</td>
                <td class="row1">1234</td>
            </tr>
            <tr>
                <td class="row1">1234</td>
                <td class="row1">1234</td>
                <td class="row1">1234</td>
            </tr>
            <tr>
                <td class="row1">1234</td>
                <td class="row1">1234</td>
                <td class="row1">1234</td>
            </tr>
            <tr>
                <td class="row1">1234</td>
                <td class="row1">1234</td>
                <td class="row1">1234</td>
            </tr>
        </table>
        <div id="chartDiv" style="float:left;margin-left:50px">
        </div>
    </div>
		
	<script type="text/javascript" language="JavaScript">
	    var data = new Array();
	    //Data for each product
	    data[0] = new Array("测量数据", 659400, 465400, 764500, 650500);
	    data[1] = new Array("拟合数据", 546300, 436500, 546500, 332500);

	    //the array of colors contains 4 unique Hex coded colours (without #) for the 4 products
	    var colors = new Array("AFD8F8", "F6BD0F");

	    /**
	    * updateChart method is called, when user changes any of the checkboxes.
	    * Here, we generate the XML data again and build the chart.		  
	    *	@param	domId	domId of the Chart
	    */
	    function updateChart(domId) {
	        //Update it's XML - set animate Flag from AnimateChart checkbox in form
	        //using updateChartXML method defined in FusionCharts.js
	        updateChartXML(domId, generateXML());
	    }

	    /**
	    * generateXML method returns the XML data for the chart based on the
	    * checkboxes which the user has checked.
	    *	@param	animate		Boolean value indicating to  animate the chart.
	    *	@return				XML Data for the entire chart.
	    */
	    function generateXML() {
	        //Variable to store XML
	        var strXML = "";

	        //<graph> element
	        //Added animation parameter based on animate parameter			
	        //Added value related attributes if show value is selected by the user
	        strXML = "<graph caption='沉降模型' hovercapbg='FFECAA' hovercapborder='F47E00' formatNumberScale='0' decimalPrecision='0' showvalues='0' numdivlines='3' numVdivlines='0' yaxisminvalue='1000' yaxismaxvalue='1800'  rotateNames='1'>";

	        //Store <categories> and child <category> elements
	        strXML = strXML + "<categories><category name='165' /><category name='175' /><category name='185' /><category name='195' /></categories>";

	        //Based on the products for which we've to generate data, generate XML			
	        strXML = strXML + getProductXML(0);
	        strXML = strXML + getProductXML(1);

	        //Close <graph> element;
	        strXML = strXML + "</graph>";

	        //Return data
	        return strXML;
	    }

	    /**
	    * getProductXML method returns the <dataset> and <set> elements XML for
	    * a particular product index (in data array). 
	    *	@param	productIndex	Product index (in data array)
	    *	@return					XML Data for the product.
	    */
	    function getProductXML(productIndex) {
	        var productXML;
	        //Create <dataset> element taking data from 'data' array and color vaules from 'colors' array defined above
	        productXML = "<dataset seriesName='" + data[productIndex][0] + "' color='" + colors[productIndex] + "' anchorBorderColor='" + colors[productIndex] + "' anchorBgColor='" + colors[productIndex] + "'>";
	        //Create set elements
	        for (var i = 1; i <= 4; i++) {
	            productXML = productXML + "<set value='" + data[productIndex][i] + "' />";
	        }
	        //Close <dataset> element
	        productXML = productXML + "</dataset>";
	        //Return dataset data
	        return productXML;
	    }
        
        var chart = new FusionCharts("../../Scripts/FusionChartsFree/Charts/FCF_MSLine.swf", "ChartId", "400", "300");
        var strXML = generateXML();
        chart.setDataXML(strXML);
	    chart.render("chartDiv");
	</script>
-->
</asp:Content>
